# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-paramiko
_pkgname=paramiko
pkgver=2.12.0
pkgrel=1
pkgdesc='SSH2 protocol library.'
url='https://pypi.org/project/paramiko/#files'
arch=('any')
license=('LGPL')
depends=('python2' 'python2-cryptography' 'python2-bcrypt' 'python2-pyasn1'
         'python2-pynacl')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('2d51d4fb7a4011cbbe67f78ca5a8cb2e316562dff314c07827af7d701c64fd6a42edb8d358d701aa95f3ae1326277a23e264fcf6bdbc4c9491f81320143f3671')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

